* {
  margin: 0;
  border: 0;
  padding: 0;
  box-sizing: border-box;
}
.gobang-box {
  width: 1000px;
  margin: 30px auto;
}
.gobang {
  width: 420px;
  margin-top: 20px;
  font-size: 0;
  background-color: #f9cc9d;
  position: relative;
  padding: 10px;
}
.gobang > .chunk {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  position: relative;
}
.gobang > .chunk:not(.clicked)::before {
  content: '';
  width: 1px;
  height: 100%;
  background-color: #000000;
  position: absolute;
  top: 0;
  left: 50%;
}
.gobang > .chunk:not(.clicked)::after {
  content: '';
  width: 100%;
  height: 1px;
  background-color: #000000;
  position: absolute;
  top: 50%;
  left: 0;
}
.gobang > .chunk:not(.clicked).top::before {
  height: 50%;
  top: 50%;
}
.gobang > .chunk:not(.clicked).bottom::before {
  height: 50%;
  top: 0;
}
.gobang > .chunk:not(.clicked).left::after {
  width: 50%;
  left: 50%;
}
.gobang > .chunk:not(.clicked).right::after {
  width: 50%;
  left: 0;
}

.gobang > .chunk:not(.clicked):hover {
  border: 1px dotted #f00;
}
.gobang > .chunk.white {
  border-radius: 50%;
  background-color: rgb(255, 255, 255);

  background: -webkit-radial-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
  background: -moz-radial-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
  background: radial-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
}
.gobang > .chunk.black {
    border-radius: 50%;
    background-color: rgb(0, 0, 0);
  
    background: -webkit-radial-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.8));
    background: -moz-radial-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.8));
    background: radial-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.8));
  }

  .gobang.black-win::before{
    content: '黑棋胜';
    font-size: 48px;
    color: #f00;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 9999;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0,0.7)
  }
  .gobang.white-win::before{
    content: '白棋胜';
    font-size: 48px;
    color: #f00;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 9999;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0,0.7)
  }

  .order-hint{
    padding: 10px;
  }

